/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Chiabai_total;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oho
 */
public class ThreadMain extends Thread{
    ArrayList<ThreadImages>im = null;
    public ThreadMain(ArrayList<ThreadImages> img)
    {
        this.im = img;
    }
    public void run()
    {
        for(ThreadImages img : im)
        {
            try {
                img.start();
                sleep(100);
            } catch (InterruptedException ex) {
                Logger.getLogger(ThreadMain.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
    
}
